<ul style="clear: both;">
<?php
$session=new CHttpSession();
$session->open();
$i=$session['i'];

if(!empty($data)) {
    $user=Users::model()->with('p')->findByPk($data->uid);
    echo '<li class="bt"><a href="'.Yii::app()->createUrl('article/view', array('menu'=>0,'type'=>1, 'id'=>$data->aid)).'">'.mb_substr($data->title,0,28,'UTF-8').'</a>&nbsp;</li>'.
        '<li class="ren">'.$user->p->nickname.'&nbsp;</li>'.
        '<li class="time">'.substr($data->excerpt,0,20).'&nbsp;</li>'.
        '<li class="time">'.substr($data->createtime,0,10).'&nbsp;</li>'.
        '<li class="hit">'.$data->clicknumber.'&nbsp;</li>';
}

$session['i']=$i+1;
?>
</ul>